package org.wanghong.org.service.impl;

import org.springframework.stereotype.Service;
import org.wanghong.basic.service.impl.BaseServiceImpl;
import org.wanghong.org.domain.Employee;
import org.wanghong.org.service.IEmployeeService;


@Service
//@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService{
    /*@Autowired
    private DepartmentMapper mapper;

    @Transactional
    @Override
    public void add(Department department) {
        mapper.save(department);
    }
    @Transactional
    @Override
    public void del(Serializable id) {
        mapper.remove(id);
      *//*  int i=1/0;*//*

    }

    @Transactional
    @Override
    public void update(Department department) {
        mapper.update(department);
    }

    @Override
    public Department getById(Serializable id) {
        return mapper.loadById(id);
    }

    @Override
    public List<Department> getAll() {
        return mapper.loadAll();
    }

    @Override
    public PageList<Department> queryPage(DepartmentQuery query) {
        long total = mapper.loadCount(query);//总条数
        if(total<1)
            return new PageList<>();

        List<Department> rows = mapper.loadData(query);

        return new PageList<>(total,rows);

    }*/




}
